package work1.work2.university;


public class VIPuniversity extends University{
    @Override
    void enter() {
        if (math + english + chinese + sport >= 290 & sport >= 60) {
            double sum = math+english+chinese+sport;
            System.out.println("恭喜！三门课的总分是："+sum+"达到重点大学录取分数线");
        }
        else {
            System.out.println("你未被重点大学录取");
        }
    }
}
